{include file="head.html" title="View post | Happy endings"}

	<div id="content">
		<div id="menu">
			<ul id="topiclist">
				<li><a href="./">View post</a></li>
				<li><a href="./?topic=0">All</a></li>
				{$topicList}
			</ul>
		</div>
		<div id="posts">
			{include file="postList.html"}
			<div class="block">
				<div class="blocktitle">Support rate by gender</div>
				<div class="blockcontent">
					<img src="http://chart.apis.google.com/chart?chs=450x135&cht=p3&chd=t:{$supportrate}&chl=Male+pro|Male+can|Female+pro|Femal+can&chco=2BAD2B|CC3333|BBE5BB|EFBEBE" width="450" height="135" alt="" />
				</div>
				<div class="blocktitle">Comments</div>
				<div class="blockcontent">
					{section name=comment loop=$comments}
						{$comments[comment].content}
						<hr />
					{/section}
					{$nocomment}
				</div>
			</div>
		</div>
		<div id="sidebar">
			<div class="block">
				<div class="blocktitle">New comment</div>
				<div class="blockcontent">
					<form id="newcomment" action="" method="POST">
						<label>Content: <textarea name="newcommentcontent" id="newcommentcontent" cols="20" rows="6"></textarea></label>
						<input type="submit" id="submit" value="Submit" />
					</form>
				</div>
			</div>
		</div>
	</div>
	
{include file="foot.html"}